window: Don't lose position information
authorBenjamin Otte <otte@redhat.com>
Wed, 25 Nov 2015 14:25:55 +0000 (15:25 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 25 Nov 2015 19:31:27 +0000 (20:31 +0100)
Before calling gdk_window_move_resize(), store the full configure
request, not just width and height.

Fixes firefox randomly losing position of its dropdown windows.

https://bugzilla.gnome.org/show_bug.cgi?id=758609

gtk/gtkwindow.c

index 309a1fec59f1e1108f95a0db12011a97b0098024..047ceaf4d4cc4b17ab4a89971dbea04b1180fc16 100644 (file)
@@ -6121,8 +6121,7 @@ gtk_window_show (GtkWidget *widget)
        * and gdk_window_resize() below, rather than
        * queuing it.
        */
-      info->last.configure_request.width = configure_request.width;
-      info->last.configure_request.height = configure_request.height;
+      info->last.configure_request = configure_request;
       
       /* and allocate the window - this is normally done
        * in move_resize in response to configure notify